//
//  SignupViewController.h
//  SpendFunk
//
//  Created by dongmh on 4/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface SignupViewController : UIViewController <UITextFieldDelegate, NSXMLParserDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate>{
	UIButton *m_pBtnBack;
	UIButton *m_pBtnDone;
	UIButton *m_pBtnTakePhoto;
	
	UITextField *m_ptxtEmail;
	UITextField *m_ptxtFirstname;
	UITextField *m_ptxtLastname;
	UITextField *m_ptxtUsername;
	UITextField *m_ptxtPassword;
	UITextField *m_ptxtPhone;
	
	
	UIImageView *m_pImgUser;
	
	NSMutableData *m_pWebData;
	NSString *currentElementValue;
	NSString *currentElement;
	
	UIImagePickerController	*m_pPhotoPreferenceViewCtrl;
	
	BOOL isContinueParse;
	UIScrollView *srlvSignupBkgr;
	// Next previous button
	UIToolbar *keyboardToolbar;
	UISegmentedControl *nextPreviousControl;	
	BOOL keyboardToolbarShouldHide;
	
	// please wait...
	UIView *_blockerView;
	BOOL isUpdate;
}
-(void)initView;
-(void)setKeyBroadActive;
-(void)onClickBack;
-(void)onClickDone;
-(void)onClickTakePhoto;
-(void)setViewMovedUp:(BOOL)movedUp;
-(void)requestToServer:(NSString *)username withPassword:(NSString *)pass withEmail:(NSString *)email withFirstName:(NSString *)firstName withLastName:(NSString *)lastName andAvatarName:(NSString *)avatarName;

//
@property (nonatomic, retain) UISegmentedControl *nextPreviousControl;
@property (nonatomic, retain) UIToolbar *keyboardToolbar;

@end
